/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.cpqd.ssar.gerenciador;

import java.util.Observable;
import java.util.Observer;

/**
 *
 * @author igorj
 */
public abstract class AbstractRender implements Observer {
    
    private Render render;
    
    public AbstractRender(Render observableRender) throws NullPointerException {
        
        if (observableRender == null){
            throw new NullPointerException();
        }
        
        render = observableRender;
        //render.addObserver(this);
        
    }
    
    public Render getRender(){
        return render;
    }
    
    protected abstract void updateNewGeometry();
        
    public void updateGeometry(Observable observable, Object object ){
        updateNewGeometry();
    }
            
    

}
